package com.study.modules.saas.service;

import com.study.modules.saas.repository.dao.BillDao;
import com.study.modules.saas.repository.model.BillDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillService {

    @Autowired
    BillDao billDao;

    public BillDO getBillByOrderId(String orderId){
        return billDao.selectBillByOrderId(orderId);
    }

    public List<BillDO> getBillsByOrderId(String orderId){

        return billDao.selectBillsByOrderId(orderId);
    }
}
